<html layout:decorator="public/form" xmlns:miguo="http://www.w3.org/1999/html">
<div layout:fragment="content">
	<form class="layui-form model-form" action="" style="width:80%;">
		<input name="id" type="hidden" th:value="${info['id']}?:0">
		<div class="layui-form-item">
			<label class="layui-form-label">头像：</label>
			<widget:uploadSingleImage name="avatar|头像|90x90|admin|建议上传尺寸450x450|450x450" th:value="${info['avatar']}"/>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">真实姓名：</label>
				<div class="layui-input-inline">
					<input name="realname" th:value="${info['realname']}" lay-verify="required" autocomplete="off" placeholder="请输入真实姓名" class="layui-input" type="text">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">昵称：</label>
				<div class="layui-input-inline">
					<input name="nickname" th:value="${info['nickname']}" lay-verify="required" autocomplete="off" placeholder="请输入昵称" class="layui-input" type="text">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">性别：</label>
				<div class="layui-input-inline">
					<widget:singleSelect name="gender|1|性别|name|id" th:data="${USER_GENDER_LIST}" th:value="${info['gender']}?:3"/>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">手机号码：</label>
				<div class="layui-input-inline">
					<input name="mobile" th:value="${info['mobile']}" lay-verify="required|phone" placeholder="请输入手机号码" autocomplete="off" class="layui-input" type="tel">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">电子邮箱：</label>
				<div class="layui-input-inline">
					<input name="email" th:value="${info['email']}" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" type="text">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">部门：</label>
				<div class="layui-input-inline">
					<widget:complexSelect name="deptId|0|部门|name|id" sql="SELECT id,`name` FROM sys_dept WHERE pid=? AND mark=1 ORDER BY sort ASC;" th:value="${info['deptId']}?:0"/>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">职级：</label>
				<div class="layui-input-inline">
					<widget:singleSelect name="levelId|1|职级|name|id" sql="SELECT id,`name` FROM sys_level WHERE `status`=1 AND mark=1;" th:value="${info['levelId']}?:0"/>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">岗位：</label>
				<div class="layui-input-inline">
					<widget:singleSelect name="positionId|1|职位|name|id" sql="SELECT id,`name` FROM sys_position WHERE `status`=1 AND mark=1;" th:value="${info['positionId']}?:0"/>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">登录名：</label>
				<div class="layui-input-inline">
					<input name="username" th:value="${info['username']}" lay-verify="required" autocomplete="off" placeholder="请输入登录用户名" class="layui-input" type="text">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">登录密码：</label>
				<div class="layui-input-inline">
					<input name="password" autocomplete="off" placeholder="请输入登录密码" class="layui-input" type="password">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">所属城市：</label>
			<widget:citySingleSelect th:value="${info['districtId']} ?: 0" limit="3"/>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">个性标签：</label>
			<div class="layui-input-block">
				<widget:tagsInput name="tags|1|4" data="['很有想法的','专注设计','大长腿','川妹子','海纳百川']" th:value="${info['tags']}"/>
			</div>
		</div>
		<div class="layui-form-item layui-form-text" style="width:625px;">
			<label class="layui-form-label">用户角色：</label>
			<div class="layui-input-block">
				<widget:checkboxSingleSelect name="roleIds|name|id" sql="SELECT id,`name` FROM sys_role WHERE mark=1 ORDER BY sort ASC;" th:value="${info['roleIds']}?:[]"/>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">出生日期：</label>
				<div class="layui-input-inline">
					<widget:dateSelect name="birthday|出生日期|date" th:value="${#dates.format(info['birthday'], 'yyyy-MM-dd')}"/>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">显示顺序：</label>
				<div class="layui-input-inline">
					<input name="sort" th:value="${info['sort']}" lay-verify="required|number" autocomplete="off" placeholder="请输入显示顺序" class="layui-input" type="text">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">状态：</label>
				<div class="layui-input-inline">
					<widget:switchCheck name="status" data="正常|禁用" th:value="${info['status']} ?: 1"/>
				</div>
			</div>
		</div>
<!--		<div class="layui-form-item layui-form-text" style="width:625px;">-->
<!--			<label class="layui-form-label">下拉多选：</label>-->
<!--			<div class="layui-input-block">-->
<!--				<widget:xmSelect name="test|1|请选择角色|name|id|pid" sql="SELECT id, `name`, pid FROM sys_dep WHERE mark=1 ORDER BY sort ASC;" value="1,2"/>-->
<!--			</div>-->
<!--		</div>-->
		<div class="layui-form-item" style="width: 625px;">
			<label class="layui-form-label">备注：</label>
			<div class="layui-input-block">
				<textarea name="note" placeholder="请输入备注" class="layui-textarea" th:text="${info['note']}"></textarea>
			</div>
		</div>
		<widget:btnSubmit name="submit|立即保存,close|关闭"/>
	</form>
</div>
</html>